// Server.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "CasualGameServer.h"

void processPrompt()
{
	std::string prompt;
	do
	{
		std::cout << "$ ";
		std::getline(std::cin, prompt);

		if( "" == prompt )
		{
			fflush(stdout);
			continue;
		}
	}
	while( "quit" != prompt );
}

int _tmain(int argc, _TCHAR* argv[])
{
	_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); 

	CasualGameServer server;
	server.Start();

	processPrompt();

	server.Stop();

	return 0;
}

